/**
 * 根据权限代码，判断当前用户是否拥有该权限代码
 * @param {*} permiss_code 对应的权限id
 */
export const checkAuth = (permiss_code:string)=>{
  let permissions = window.localStorage.getItem('permissions') as unknown as Array<any>;
  if(permissions.includes('superAdmin')) return true
  return permissions.includes(permiss_code)
}